 

import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'

export function useDelayTime(model: { [field: string]: any }): IJsonItem {
  const { t } = useI18n()
  return {
    type: 'input-number',
    field: 'delayTime',
    name: t('project.node.delay_execution_time'),
    span: 12,
    props: {
      min: 0
    },
    slots: {
      suffix: () => t('project.node.minute')
    },
    value: model.delayTime || 0
  }
}
